package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.IsEquipmentInfo;
import cn.com.nes.site.entity.dto.fault.SysbListDto;
import cn.com.nes.site.entity.vo.fault.FaultVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yishuai
 */
public interface IsEquipmentInfoMapper extends BaseMapper<IsEquipmentInfo> {

    /**
     * 查询设备信息
     * @param sbId 设备ID
     * @return
     */
    IsEquipmentInfo getEquipmentInfoUnDelete(String sbId);

    List<SysbListDto> getHistoricalFaultSbList(Page<SysbListDto> page, @Param("vo")FaultVo vo);

    List<IsEquipmentInfo> getEquipmentInfoListByWorkOrderId(@Param("workOrderId") Long workOrderId);

    List<IsEquipmentInfo> getEquipmentInfoListByDDid(@Param("ddid") String ddid);

    List<IsEquipmentInfo> getEquipmentInfoS(@Param("equipmentIds") String equipmentIds);
}




